﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _180FrameWork.CustControls
{
    public class CustMenuStripItem
    {
        private string _MenuID;
        private string _FormID;
        private string _Caption;
        private bool _Visible;
        private bool _Enabled;
        private bool _Final;
        private string _TypeName;
        private IList<CustMenuStripItem> _ChildList;

        public string MenuID { get { return _MenuID; } set { _MenuID = value; } } 
        public string FormID { get { return _FormID; } set { _FormID = value; } }
        public string Caption { get { return _Caption; } set { _Caption = value; } }
        public bool Visible { get { return _Visible; } set { _Visible = value; } }
        public bool Enabled { get { return _Enabled; } set { _Enabled = value; } }
        public bool Final { get { return _Final; } set { _Final = value; } }
        public string TypeName { get { return _TypeName; } set { _TypeName = value; } }
        public IList<CustMenuStripItem> ChildList
        {
            get
            {
                if (_ChildList == null)
                    _ChildList = new List<CustMenuStripItem>();
                return _ChildList;
            }
            set { _ChildList = value; }
        }
    }
}
